package cn.wolfcode.luowowo.service;

import cn.wolfcode.luowowo.domain.Banner;
import cn.wolfcode.luowowo.query.BannerQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IBannerService {
    void save(Banner banner);
    void delete(String id);
    void update(Banner banner);
    Banner get(String id);
    List<Banner> listAll();
    // 分页查询的方法
    Page<Banner> query(BannerQuery qo);

    void saveOrUpdate(Banner banner);

    void changeState(String id, int state);

    List<Banner> queryTop5Travel(int typeTravel);
}